package com.wxy.gxs.springbootprojectday21.bean;

import java.io.Serializable;

public class RequestAccessTockenParam implements Serializable {
    /**
     *
     https://api.weibo.com/oauth2/access_token?client_id=你的appkey&client_secret=你的appsecret&grant_type=authorization_code&redirect_uri=http://www.gaoxi.com/weiboLogin&code=你获取的code;

     *
     */

    private String client_id;
    private String client_secret;
    private String grant_type="authorization_code";
    private String redirect_uri="http://wxyblog.5gzvip.idcfengye.com/user/login";
    private String code;

    public RequestAccessTockenParam(String client_id, String client_secret, String grant_type, String redirect_uri, String code) {
        this.client_id = client_id;
        this.client_secret = client_secret;
        this.grant_type = grant_type;
        this.redirect_uri = redirect_uri;
        this.code = code;
    }

    public String getClient_id() {
        return client_id;
    }

    public void setClient_id(String client_id) {
        this.client_id = client_id;
    }

    public String getClient_secret() {
        return client_secret;
    }

    public void setClient_secret(String client_secret) {
        this.client_secret = client_secret;
    }

    public String getGrant_type() {
        return grant_type;
    }

    public void setGrant_type(String grant_type) {
        this.grant_type = grant_type;
    }

    public String getRedirect_uri() {
        return redirect_uri;
    }

    public void setRedirect_uri(String redirect_uri) {
        this.redirect_uri = redirect_uri;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public String toString() {
        return "RequestAccessTockenParam{" +
                "client_id='" + client_id + '\'' +
                ", client_secret='" + client_secret + '\'' +
                ", grant_type='" + grant_type + '\'' +
                ", redirect_uri='" + redirect_uri + '\'' +
                ", code='" + code + '\'' +
                '}';
    }

    public RequestAccessTockenParam() {
    }
}
